﻿//==================================================================
// Copyright (C) 2015 福流网络
// 文件名: Set_EditUICofig.cs
// 作 者：代码自动生成
// 日 期：2011-10-25 9:42:23
// 描 述：
// 版 本：1.00
// 修改历史纪录
// 版 本  修改时间      修改人            修改内容
// 1.00             
//==================================================================

using FL.Lite;
using FL.DBModule;
using System.ComponentModel;
using System;

namespace FL.DBModule
{
    [Serializable]
    [Table("Set_Query", "EntityId")]
    public class SysQuery : BaseEntity
    {
        public SysQuery()
        {
            //this.ListId = Guid.NewGuid();
        }

        public string Left { get; set; }
        public string Field { get; set; }
        public string Operation { get; set; }
        public string Value { get; set; }
        public string OrAnd { get; set; }
        public string Right { get; set; }

    }


    [Serializable]
    [Table("Set_QuerySolution", "QueryId")]
    public class QuerySolution : BaseEntity
    {
        [Column]
        public Guid? QueryId
        {
            get;
            set;
        }

        [Column]
        public string SolutionName
        {
            get;
            set;
        }


        [Column]
        public string IsDefault
        {
            get;
            set;
        }

        [Column]
        public Guid? FunctionID
        { get; set; }

        [Column]
        public Guid? add_user
        {
            get;
            set;
        }

        [Column]
        public DateTime? add_time
        {
            get;
            set;
        }

        [Column]
        public string Condition
        {
            get;
            set;
        }

        [Column]
        public string EntityOjbectList
        {
            get;
            set;
        }

        [Column]
        public string EntityName
        { get; set; }
    }


    /// <summary>
    /// 参数
    /// </summary>
    [Serializable]
    [Table("StoreParameter", "ID")]
    public class StoreParameter : BaseEntity
    {
        [Column]
        public string DataType
        {
            get;
            set;
        }
        [Column]
        public string DataValue
        {
            get;
            set;
        }
        [Column]
        public string FieldName
        {
            get;
            set;
        }
    }


    /// <summary>
    /// 表结构
    /// </summary>
    [Serializable]
    [Table("v_table_info_sturc", "id")]
    public class TableInfoStruc : BaseEntity
    {
         [Column]
        public Guid id
        {
            get;
            set;
        }

         [Column]
        public string TableNotes
        {
            get;
            set;
        }
         [Column]
        public string TableName
        { 
            get; 
            set; 
        }
         [Column]
        public int Sort
        {
            get;
            set;
        }
         [Column]
        public string ColName
        {
            get;
            set;
        }
         [Column]
        public string Mark
        {
            get;
            set;
        }
         [Column]
        public string PKey
        { get; set; }

         [Column]
        public string CType
        {
            get;
            set;
        }
         [Column]
        public int Length
        {
            get;
            set;
        }
         [Column]
        public int JLength
        {
            get;set;
        }
         [Column]
        public int XLength
        {
            get;
            set;
        }
         [Column]
        public string CanNull
        {
            get;
            set;
        }
         [Column]
        public string VDefault
        {
            get;
            set;
        }
         [Column]
        public string ColDesc
        {
            get;
            set;
        }
        [Column]
        public DateTime CreateTime
        {
            get;
            set;
        }
    }

}
